package package01;

/**
 * @Description TODO
 * @Author zzj
 * @Date 2020/7/24 9:13
 */
public class Test {
    public static void main(String[] args) throws InterruptedException {
        // 生产者
        new Thread(new Producer(), "P-1").start();
        new Thread(new Producer(), "P-2").start();

        Thread.sleep(1);

        // 消费者
        new Thread(new Consumer(), "C-1").start();
        new Thread(new Consumer(), "C-2").start();
    }

}
